package park.gz.com.parkingfee.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * Created by Endeavor on 2016/12/26.
 */

public abstract class BaseFragment extends Fragment {

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        iniData();
    }

    @Override
    public void onResume() {
        super.onResume();
        iniView();
    }

    // 初始化控件
    protected abstract void iniView();

    // 初始化数据
    protected abstract void iniData();
}
